<?php

// This is the configuration for yiic console application.
// Any writable CConsoleApplication properties can be configured here.
return CMap::mergeArray(
	  require(realpath(dirname(__FILE__) . '/db.php')),
	  require(realpath(dirname(__FILE__) . '/../modules/chauffage/config/console.php')), 
	  require(realpath(dirname(__FILE__) . '/../modules/mesures/config/console.php')), 
	  array(
		'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..',
		'name' => 'My Console Application',
		// preloading 'log' component
		'preload' => array('log'),
		'commandMap' => array(
		    'chauffage' => array(
			  'class' => 'application.modules.chauffage.commands.ChauffageCommand',
		    ),
		    'temperext' => array(
			  'class' => 'application.modules.mesures.commands.TemperExtCommand',
		    ),		
		    'consoedf' => array(
			  'class' => 'application.modules.mesures.commands.ConsoEdfCommand',
		    ),		    ),
		// application components
		'components' => array(
		    'domoHelper' => array('class' => 'application.components.DomoHelper'),
		    'log' => array(
			  'class' => 'CLogRouter',
			  'routes' => array(
				array(
				    'class' => 'CFileLogRoute',
				    'levels' => 'info, error, warning',
				),
				array(
				    'class' => 'CEmailLogRoute',
				    'levels' => 'warning',
				    'emails' => '{log_emails}',
				),
			  ),
		    ),
		)
		    )
);